<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="java.util.List" %>
<%@ page import="admin.board.boardModel" %>
<jsp:useBean id="dao" scope="page" class="admin.board.boardDao" />
<%
	String menu = "4";
	String id = ((String)session.getAttribute("id")) == null ? "홍길동" : ((String)session.getAttribute("id"));
	//기본 세트 값 시작
	String searchGubn = request.getParameter("searchGubn") == null ? "" : request.getParameter("searchGubn");
	String searchValue = request.getParameter("searchValue") == null ? "" : request.getParameter("searchValue");
	int     giSelectPage  	= Integer.parseInt(request.getParameter("txtSelectPage") == null ? "0" :request.getParameter("txtSelectPage"));			//현재 선택된 페이지 저장
	int     giSelectBlock 	= Integer.parseInt(request.getParameter("txtSelectBlock") == null ? "0" :request.getParameter("txtSelectBlock"));			//현재 선택된 블락페이지 저장
	String searchBoard = "faq";
	//기본 세트 값 끝

	String data_id = request.getParameter("data_id") == null ? "" : request.getParameter("data_id");
	boardModel model = dao.getView(data_id);
	dao.getHitcount(data_id);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ko">
<head>
<%@ include file="/inc/meta.jsp" %>
<script type="text/javascript">
<!--
$(document).ready(function(){
	
	$('#btList').click(function() {
		document.getElementById("frm").action = "faq_list.jsp";
		document.getElementById("frm").submit();
	});
});
//-->
</script>
</head>
<body>
<!-- header -->
<%@ include file="/inc/header.jsp" %>
<!-- header// -->
<!-- container -->
    <div id="container">
    <form action="faq_list.jsp" name="frm" id="frm" method="post">
		<input type="hidden" name="searchGubn" 		id="searchGubn"  	value="<%=searchGubn %>"/>
		<input type="hidden" name="searchValue" 	id="searchValue"  	value="<%=searchValue %>"/>
		<input type="hidden" name="txtSelectPage" 	id="txtSelectPage"  value="<%=giSelectPage %>"/>
		<input type="hidden" name="txtSelectBlock" 	id="txtSelectBlock" value="<%=giSelectBlock %>"/> 
        <h2><img src="/img/sub0403_h2.gif" alt="자주하는질문" /></h2>
        <div class="sub-con">
        <ul class="tab04">
        <li class="one"><a href="/support/contact_list.jsp">Wedding Story for you</a></li>
        <li class="two"><a href="/support/qna_list.jsp" >Key Factors</a></li>
        <li class="three"><a href="/support/faq_list.jsp" class="hover">Key Factors</a></li>
        </ul>
        <h3><img src="/img/tit0403.gif" alt="FAQ l 회원님들께서 웨딩스토리에 자주 하는 질문을 모았습니다.  원하시는 답변이 없으시면 Q&A 게시판을 이용해 주시기 바랍니다." /></h3>
				<div class="view01">
                <table summary="제목,등록일,첨부파일,조회수를 제공한 표">
					<caption>뉴스</caption>
					<colgroup>
						<col width="15%" />
						<col width="52%" />
						<col width="15%" />
						<col width="18%" />
					</colgroup>
					<tr>
						<th scope="row" >제목</th>
						<td><%=model.getTitle() %></td>
						<th scope="row" >조회</th>
						<td><%=model.getHit_count() %></td>
					</tr>
					<tr>
						<th scope="row" >작성자</th>
						<td><%=model.getReg_id() %></td>
						<th scope="row" >작성일</th>
						<td><%=model.getReg_date() %></td>
					</tr>
					<tr>
						<th scope="row" >첨부파일</th>
						<td colspan="3"><a href="/download/<%=model.getAtt_file() %>?name=<%=model.getOrg_file() %>&kind=" ><%=model.getOrg_file() %></a></td>
					</tr>
					<tr>
						<th scope="row" >질문</th>
						<td colspan="3"><%=model.getContent() %></td>
					</tr>
					<tr>
						<th scope="row" >답변</th>
						<td colspan="3"><%=model.getRe_content() == null ? "" : model.getRe_content() %></td>
					</tr>
				</table>
                <div class="btn-right pdb100">
                <img src="/img/btn_list.gif" alt="목록" id="btList" style="cursor: pointer;"/>
                </div>
                
                </div>
			</div>

        <div class="advice"><img src="/img/img01.gif" alt="문의및상담 1666-0135" /></div>
        </form>
        </div>


<!-- footer -->
<%@ include file="/inc/footer.jsp" %>
<!-- fooer// -->
</div>
<!-- container// -->
</div>
</div>
</div>
</body>
</html>